package com.rm.zeyou.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 用户邀请表
 * </p>
 *
 * @author YanYang
 * @since 2025-03-12 17:23:41
 */
@Getter
@Setter
@TableName("t_user_invite")
@ApiModel(value = "UserInvite对象", description = "用户邀请表")
public class UserInvite implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户邀请表pk")
      @TableId(value = "user_invite_id", type = IdType.AUTO)
    private Integer userInviteId;

    @ApiModelProperty("邀请人")
    @TableField("invition_user_id")
    private Integer invitionUserId;

    @ApiModelProperty("被邀请人")
    @TableField("invited_user_id")
    private Integer invitedUserId;

    @ApiModelProperty("返现状态（0=待入账 1=已入账 ）")
    @TableField("invite_status")
    private Integer inviteStatus;

    @ApiModelProperty("奖励金额")
    @TableField("invite_amot")
    private BigDecimal inviteAmot;

    @ApiModelProperty("逻辑删除（0=未删除，1=已删除）")
    @TableField("is_delete")
    @TableLogic
    private Integer isDelete;

    @ApiModelProperty("创建时间")
      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("更新时间")
      @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
